﻿<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>modify</title>
<script>
window.onload=function(){
	if({$data.sex} == 0){
		document.getElementsByName('sex')[1].checked='checked';
	}else{
		document.getElementsByName('sex')[0].checked='checked';
	}
}
</script>
</head>
<body>
<form action="/Thinkphp/index.php/User/update" method="post">
<input type="hidden" name="id" value="{$data.id}">
姓名:<input type="text" name="username" value="{$data.username}"/><br />
性别:男<input type="radio" name="sex" value = "1"  />女<input type="radio" name="sex" value = "0"/><br />
<input type="submit" name="submit" value="修改" />
</form>
</body>
</html>